package com.itheima.service;

import com.itheima.domain.Collection2;
import com.itheima.domain.FilePojo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface CollectionService {

    public boolean save(Collection2 collection);


    public boolean delete(Collection2 collection);


    public Collection2 getById(Integer qid, Integer uid);

    List<Collection2> getByUid(Integer uid);

    public List<Collection2> getAll();
}
